package com.test;

/**
 * Created by zybang on 2017/7/26.
 */
public class MAIN    {
    private String name =  "chenssy";
    private int age =23;

    /**省略getter和setter方法**/

     class InnerClass{
        public InnerClass(){
            int i = 10;
        }

        public void display(){
            System.out.println("name：" + name +"   ;age：" + age);
        }
    }

    public static void main(String[] args) {
        MAIN outerClass = new MAIN();
        MAIN.InnerClass innerClass = outerClass.new InnerClass();
        innerClass.display();

    }

}
